<?php
use yii\helpers\Html;
?>
<table class="table table-hover">
	<thead>
		<tr>
			<th>#</th>
			<th>游戏名成</th>
			<th>拼音</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($data as $item):?>
		<tr>
			<td><?= $item['game_id'];?></td>
			<td><?= truncate(Html::encode($item['game_name']),23);?></td>
			<td><?= truncate(Html::encode($item['pinyin']),13);?></td>
			<td><?= Html::encode($item['state_name']);?></td>
			<td>
				<a class="btn btn-sm btn-warning" href="javascript:void(0)" onclick="assignGame(<?= $item['game_id'];?>, '<?= $item['game_name'];?>')"><i class="icon-login"></i> 指派</a>
			</td>
		</tr>
		<?php endforeach;?>
	</tbody>
</table>